<template>
  <div class="flow-container">
    <!-- 查询部分 -->
    <FlowSales :getDataList="newList" :newCount="count"></FlowSales>
    <!-- 表格区域 -->
    <FlowDetaildata @getDishFlowData="getNewMethod(arguments)"></FlowDetaildata>
  </div>
</template>

<script>
import FlowSales from '../../components/zcs/Flows/FlowSales.vue'
import FlowDetaildata from '../../components/zcs/Flows/FlowsDetaildata.vue'

export default {
  data() {
    return {
      newList: [],
      count: 0
    }
  },
  methods: {
    //从子组件中(FlowDetaildata)获得数据接口的值
    getNewMethod(val) {
      this.newList = val[0]
      this.count = val[1]
      // console.log(this.newList)
      // console.log(this.count)
    }
  },
  components: {
    FlowSales,
    FlowDetaildata
  }
}
</script>

<style lang="less" scoped></style>
